def demo(*p):
    a = (sum(p)/len(p))
    b = [i for i in p if i > a]
    return (a,)+tuple(b)
print(demo(1,2,3,4))
